package com.lxx.consumer.service.imple;

import com.lxx.consumer.feign.ProductFeign;
import com.lxx.consumer.pojo.User;
import com.lxx.consumer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liuxing
 * @create 2022-08-27 1:16
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private ProductFeign productFeign;

    @Override
    public User getUserById(Long id) {
        return productFeign.getUserById(id);
    }
}
